package com.study.choosemaster;

import java.io.Serializable;

/**
 * Created By gtx on 2017/8/11/19:43
 */
public class UserCenter implements Serializable{

    private static final long serialVersionUID = 8912011338284396557L;
    /**机器名称*/
    private String mc_name;
    /**机器编号*/
    private int mc_id;

    public String getMc_name() {
        return mc_name;
    }

    public void setMc_name(String mc_name) {
        this.mc_name = mc_name;
    }

    public int getMc_id() {
        return mc_id;
    }

    public void setMc_id(int mc_id) {
        this.mc_id = mc_id;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        UserCenter that = (UserCenter) o;

        if (mc_id != that.mc_id) return false;
        return mc_name != null ? mc_name.equals(that.mc_name) : that.mc_name == null;
    }

    @Override
    public int hashCode() {
        int result = mc_name != null ? mc_name.hashCode() : 0;
        result = 31 * result + mc_id;
        return result;
    }
}
